.main {
  width: 100%;
  height: 100%;
  padding: 30px;
  background: linear-gradient(145deg, #ffffff, #f5f7fa);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.search-bar {
  width: 50%;
  padding: 12px 20px;
  border-radius: 12px;
  border: 2px solid #eef2f7;
  background: #ffffff;
  font-size: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.search-bar:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 2px 15px rgba(59, 130, 246, 0.1);
}

.search-button,
.add-button {
  margin-left: 20px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.search-button:hover,
.add-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(59, 130, 246, 0.3);
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.body {
  height: calc(100% - 60px);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 25px;
  padding: 10px;
  overflow-y: auto;
}

.body::-webkit-scrollbar {
  width: 8px;
}

.body::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.body::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.icon-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
}

.icon-item img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}

.icon-item:hover img {
  transform: scale(1.1);
}

.icon-item span {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #1f2937;
  text-align: center;
}

.four-four.icon-item {
  grid-column: span 2;
  grid-row: span 2;
  padding: 30px;
}

.four-four.icon-item img {
  width: 100px;
  height: 100px;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  grid-auto-rows: 150px;
  gap: 20px;
  padding: 15px;
  height: 500px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
}

.grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.grid-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.todo-list-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.todo-list-modal {
  background: #ffffff;
  padding: 30px;
  border-radius: 20px;
  width: 90%;
  max-width: 800px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close-button {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 8px 16px;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.close-button:hover {
  background: #dc2626;
  transform: scale(1.05);
}

.component-input,
.component-select {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  font-size: 14px;
  transition: all 0.2s ease;
  margin-right: 15px;
  color: #4b5563;
}

.component-input:hover,
.component-select:hover {
  border-color: #d1d5db;
  background-color: #f9fafb;
}

.component-input:focus,
.component-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background-color: #ffffff;
}

.add-button {
  background: #3b82f6;
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.add-button:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.add-component {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.add-component:hover {
  background-color: transparent;
}

.icon-grid-ten {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.icon-grid-five {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.centered-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
}

/* 可展开的盒子样式 */
.expandable-box {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  cursor: pointer;
  border-radius: 8px;
}
